foovisionwrapdir = $(bindir)
foovisionwrap_SCRIPTS = FooVisionClient

foovisionclientdir = $(pkglibdir)
foovisionclient_SCRIPTS = FooVisionClient.exe

EXTRA_DIST = $(foovisionclient_sources) $(foovisionclient_sources_in) \
	     FooVisionClient.in

CLEANFILES = FooVisionClient.exe
DISTCLEANFILES = FooVisionClient $(foovisionclient_generated_sources)

foovisionclient_sources_in = AssemblyInfo.cs.in
foovisionclient_generated_sources = $(foovisionclient_sources_in:.in=)
foovisionclient_sources = FooVisionClient.cs TrayLib.cs

foovisionclient_build_sources = $(addprefix $(srcdir)/, $(foovisionclient_sources))
foovisionclient_build_sources += $(foovisionclient_generated_sources)

foovisionclient_resources = $(srcdir)/../resources/foovision.png
foovisionclient_embedded = $(foreach res,$(foovisionclient_resources),\
    $(addprefix -resource:,$(res)),$(notdir $(res)))


FooVisionClient.exe: $(foovisionclient_build_sources) $(foovisionclient_resources)
	$(MCS) $(GTKSHARP_LIBS) $(LIBBTCTLSHARP_LIBS) $(GCONFSHARP_LIBS) $(foovisionclient_embedded) -out:$@ \
	$(foovisionclient_build_sources)

